home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / ntreskit.exe / INSTALLD.CMD < prev    next >
OS/2 REXX Batch file  |  1993-07-07  |  970b  |  45 lines

  1. @echo off
  2.  
  3. if %1# == /not# goto UNINSTALL
  4. if %1# == /NOT# goto UNINSTALL
  5. if %1# == /Not# goto UNINSTALL
  6. if %1# == not# goto UNINSTALL
  7. if %1# == NOT# goto UNINSTALL
  8. if %1# == Not# goto UNINSTALL
  9.  
  10. if not %1#==# goto USAGE
  11.  
  12. if exist c:\ntdetect.000 goto ALREADY
  13.  
  14. attrib -h -s -r c:\ntdetect.com
  15. copy c:\ntdetect.com c:\ntdetect.000
  16. copy ntdetect.com c:\ntdetect.com
  17. attrib +h +s +r c:\ntdetect.com
  18. echo Debug NTDETECT installed successfully
  19. echo To un install, type INSTALLD /NOT
  20. goto END
  21.  
  22. :ALREADY
  23. echo Debug NTDETECT already installed
  24. echo To un install, type INSTALLD /NOT
  25. goto END
  26.  
  27. :UNINSTALL
  28. if not exist c:\ntdetect.000 goto NOT_INST
  29. attrib -h -s -r c:\ntdetect.com
  30. copy c:\ntdetect.000 c:\ntdetect.com
  31. attrib +h +s +r c:\ntdetect.com
  32. echo Debug NTDETECT has been removed.
  33. erase c:\ntdetect.000
  34. goto END
  35.  
  36. :NOT_INST
  37. echo Can't remove.  Debug NTDETECT not installed!
  38. goto END
  39.  
  40. :USAGE
  41. echo USAGE:
  42. echo INSTALLD [ /NOT ]
  43.  
  44. :END
  45.